
#--------------------------------------------------------------
# opbasm m4 语法：http://kevinpt.github.io/opbasm/rst/m4.html
# m4 是一个语法预编译器，能够生成PSM的汇编
#--------------------------------------------------------------

default:soft_m4_pid 


# 安装汇编工具链
toolchain:
	@rm -rf opbasm 
	@git clone https://gitee.com/yuan_hp/opbasm.git
	@cd opbasm && python3 setup.py install 
	@rm -rf opbasm 


help:
	@echo "------------------------------------------------------------------------------------"
	@echo "make toolchain       install  toolchain for psm "
	@echo "make psm_*           compare  ./psm/psm_*  and sim"
	@echo "make cpsm_*          compare  ./cpsm/cpsm_*  and sim, based on sdcc for pblaze"
	@echo "make test            test base order"
	@echo "Note:"
	@echo "opbasm m4 语法      : http://kevinpt.github.io/opbasm/rst/m4.html"
	@echo "------------------------------------------------------------------------------------"

.PHONY:test
test:
	bash test/test.sh

clean:
	@rm -rf build
	@rm -rf *.vcd *.vvp

include Project.mk 


